/*
	格式化tushare日期

	input: “20190701”
	output: 1505827800000
*/

var conv = {}

module.exports = conv;

conv.do = function(obj){

	var robj = null
	for(var i=0;i<obj.length;i++){
		var q = obj[i][0] + ""
		// console.log(q)
		var t = q.substr(0,4) + '-' + q.substr(4,2) + '-' + q.substr(6,2);
		// console.log(t)
		var nt = new Date(t).getTime()
		// console.log(nt)
		obj[i][0] = nt
		// var n = parseInt(q);
	}
	// return robj;
}
